/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package crawler.common;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author ngotandieu
 */
public class ProfileData {

    String id;
    String name;
    String realname;
    String avatar;
    long dob;
    String country;
    String profile;
    String author;
    String editor;
    long updated;
    long created;
    List<String> cates = new ArrayList<>();
    
    // contructor for add new
    public ProfileData(String name, String realname, String avatar, long dob, String country, String profile, List<String> lstCate, String author) {
        this.id = "";
        this.name = name;
        this.realname = realname;
        this.avatar = avatar;
        this.dob = dob;
        this.country = country;
        this.profile = profile;
        this.cates = lstCate;
        this.author = author;
        this.editor = author;
        this.updated = System.currentTimeMillis();
        this.created = System.currentTimeMillis();
    }
    
    // contructor for edit
    public ProfileData(String id, String name, String realname, String avatar, long dob, String country, String profile, List<String> lstCates, String editor) {
        this.id = id;
        this.name = name;
        this.realname = realname;
        this.avatar = avatar;
        this.dob = dob;
        this.country = country;
        this.profile = profile;
        this.cates = lstCates;
        this.editor = editor;
        this.author = editor;
        this.updated = System.currentTimeMillis();
    }
    
    public ProfileData(String id, String name, String realname, String avatar, long dob, String country, String profile, List<String> cates, String author, String editor, long updated, long created) {
        this.id = id;
        this.name = name;
        this.realname = realname;
        this.avatar = avatar;
        this.dob = dob;
        this.country = country;
        this.profile = profile;
        this.cates = cates;
        this.author = author;
        this.editor = editor;
        this.updated = updated;
        this.created = created;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getRealname() {
        return realname;
    }

    public String getAvatar() {
        return avatar;
    }

    public long getDob() {
        return dob;
    }

    public String getCountry() {
        return country;
    }

    public String getProfile() {
        return profile;
    }

    public String getAuthor() {
        return author;
    }

    public String getEditor() {
        return editor;
    }

    public long getUpdated() {
        return updated;
    }

    public long getCreated() {
        return created;
    }

    public List<String> getCates() {
        return cates;
    }

}
